import Guide from '@/components/Guide';
import { PageContainer } from '@ant-design/pro-components';
import { useModel } from '@umijs/max';
import { useEffect } from 'react';
import styles from './index.less';

const HomePage: React.FC = () => {
  const { initialState, loading, error, refresh, setInitialState } =
    useModel('@@initialState');

  const getUserInfo = async () => {
    refresh();
  };

  useEffect(() => {
    getUserInfo();
  }, []);

  return (
    <PageContainer ghost>
      <div className={styles.container}>
        <Guide name={'MMK'} />
      </div>
    </PageContainer>
  );
};

export default HomePage;
